package com.jiankang.askhealth.constant;

public enum AreaType {
	CONTIENT("z", "洲"), 
	COUNTRY("g", "国家"), 
	PROVINCE("s", "省");

	public static AreaType getByType(String type) {
		AreaType[] values = values();
		for (AreaType placeType : values) {
			if (placeType.getType().equals(type)) {
				return placeType;
			}
		}
		return null;
	}

	private AreaType(String type, String desc) {
		this.type = type;
		this.desc = desc;
	}

	private String type;
	private String desc;

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

}
